package com.theory.builder;

import com.theory.config.Configuration;

public abstract class BaseConfigBuilder {
    protected final Configuration configuration;

    protected BaseConfigBuilder(Configuration configuration) {
        this.configuration = configuration;
    }

    public Configuration getConfiguration() {
        return configuration;
    }

    public Class<?> resolveClass(String classPath){
        try {
            return Class.forName(classPath);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException("can not find the class: " + classPath);
        }
    }
}
